package com.xinqi.modules.course.clazz.dto.req;

import com.xinqi.common.green.annotation.Text;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Schema(description = "使用手机号和验证码加课")
public class ClassJoinAuditApplyByPhoneDTO implements Serializable {
    /**
     * 班级ID
     */
    @NotNull(message = "缺少班级id")
    @Schema(description = "班级id", example = "")
    private Long classId;

    /**
     * 申请内容
     */
    @Text
    @Schema(description = "申请内容", example = "")
    private String auditContent;

    /**
     * 手机号
     */
    @NotNull(message = "手机号不能为空")
    @Schema(description = "手机号", example = "")
    private String mobile;

    /**
     * 用户密码
     */
    @NotNull(message = "{user.password.not.blank}")
    @Schema(description = "用户密码", example = "")
    private String password;

    /**
     * 验证码
     */
    @NotNull(message = "验证码不能为空")
    @Schema(description = "验证码", example = "")
    private String smsCode;

    /**
     * 用户角色 1老师 2学生 3家长
     */
    @Schema(description = "用户角色", example = "")
    private Integer userRole;
}
